<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	template="/templates/default.xhtml">
	<ui:define name="article">
	<h:form id="form1">			
			<h:inputHidden id="id" value="#{#EntityName#MB.#EntityName#.id}" />			
			#EntityAttributes#
			<br />
			<p class="no-border">
			<f:ajax execute="@form" render="@form">
				<h:commandButton id="new" value="New" type="submit"
					action="#{#EntityName#MB.init}" styleClass="button">
				</h:commandButton>&nbsp;
				<h:commandButton id="save" value="Save" type="submit"
					action="#{#EntityName#MB.save#EntityName1UC#}" styleClass="button">
				</h:commandButton>&nbsp;
				<h:commandButton id="delete" value="Delete" type="submit"
					action="#{#EntityName#MB.delete#EntityName1UC#}" styleClass="button">
				</h:commandButton>				
			</f:ajax>
			</p>
			
			<h:messages />
			<br />
			<br />			
			
			<f:ajax render="@form">

				<h:dataTable id="dt" value="#{#EntityName#MB.list#EntityName1UC#}" var="row" rowClasses="row,altrow">
					#EntityAttributeListAll#
				</h:dataTable>
			</f:ajax>
		</h:form>
	</ui:define>
</ui:composition>